﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace eLoan.Models
{
    [Table("BorrowerReference")]
    public class BorrowerReference : BorrowerReferenceFields
    { }

    public class BorrowerReferenceFields
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        [Display(Name = "ID")]
        public int ID { get; set; }

        [Display(Name = "Borrower")]
        public int BorrowerID { get; set; }

        [Display(Name = "Name")]
        [StringLength(200)]
        public string Name { get; set; }

        [Display(Name = "Relationship")]
        [StringLength(200)]
        public string Relationship { get; set; }

        [Display(Name = "Contact Numbers")]
        [StringLength(200)]
        public string ContactNumbers { get; set; }

    }

}